package goose

import "gitee.com/chencanxin/goose/session"

var GooseSessionManager *session.SessionManager

func StartSessionManager(sessionName string,providerName string,config string,expireTime int64,httpOnly bool,path string,domain string,cookieLifeTime int) error{
	var err error
	GooseSessionManager,err = session.NewSessionManager(sessionName,providerName,config,expireTime,httpOnly,path,domain,cookieLifeTime)
	if err!=nil{
		return err
	}
	return nil
}